package com.znsd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 属性值表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("base_attr_value")
public class BaseAttrValue extends Model<BaseAttrValue> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 属性值名称
     */
    @TableField("value_name")
    private String valueName;
    /**
     * 属性id
     */
    @TableField("attr_id")
    private Long attrId;
    /**
     * 启用：1 停用：0 1
     */
    @TableField("is_enabled")
    private String isEnabled;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValueName() {
        return valueName;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaseAttrValue{" +
        "id=" + id +
        ", valueName=" + valueName +
        ", attrId=" + attrId +
        ", isEnabled=" + isEnabled +
        "}";
    }
}
